<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    var obj = {
      uname: '可可',
      type: '阿拉斯加犬',
      age: 5,
      color: '棕红色',
      skill: function () {
        console.log('汪汪汪、演电影');
      }
    }
    console.log('姓名：' + obj.uname);
    console.log('类型：' + obj.type);
    console.log('年龄：' + obj.age);
    console.log('颜色：' + obj.color);
    console.log('技能：');
    obj.skill();
  </script>
</head>

<body>

</body>

</html>